package swagger

import (
	"github.com/gin-gonic/gin"
	"github.com/swaggo/files"
	"github.com/swaggo/gin-swagger"
)

var SwaggerUtil = &SwaggerUtilTool{}

type SwaggerUtilTool struct {
}

func (*SwaggerUtilTool) InitSwagger(router *gin.Engine) {
	url := ginSwagger.URL("/swagger/doc.json") // Swagger JSON URL
	router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, url))
}
